<div id="sidebar">

<div id="sidebarL">

<?php get_search_form(); ?>


<div id="module">
<div id="Syn">
 <ul>
  <li><a title="订阅我的网站，不错过精彩内容！" href="<?php echo get_feed_url() ?>">Entries</a> (RSS)</li>
  <li><a title="订阅用户评论" href="<?php bloginfo('comments_rss2_url'); ?>">Comments</a> (RSS)</li>
 </ul>
<div id="feeds">
<ul>
  <li><a target="_blank" rel='external nofollow' href="http://www.zhuaxia.com/add_channel.php?url=<?php echo get_feed_url() ?>"><img id="zhuaxia" src="<?php bloginfo('template_directory'); ?>/images/t.png" title="抓虾" alt="抓虾"/></a></li>
  <li><a target="_blank" rel='external nofollow' href="http://fusion.google.com/add?feedurl=<?php echo get_feed_url() ?>"><img id="google" src="<?php bloginfo('template_directory'); ?>/images/t.png" title="Google Reader" alt="google reader"/></a></li>
  <li><a target="_blank" rel='external nofollow' href="http://www.xianguo.com/subscribe.php?url=<?php echo get_feed_url() ?>"><img id="xianguo" src="<?php bloginfo('template_directory'); ?>/images/t.png" title="鲜果" alt="鲜果"/></a></li>
  <li><a target="_blank" rel='external nofollow' href="http://inezha.com/add?url=<?php echo get_feed_url() ?>"><img id="inezha" src="<?php bloginfo('template_directory'); ?>/images/t.png" title="哪吒" alt="哪吒"/></a></li>
</ul>
</div>
</div>
<!-- Start ContactMe -->
<div class="ContactMe">
	<h3>Connect Me</h3>
	 <ul><li></li></ul>
	 <div class="imgDiv">
        <div id="Qme" title="Hello,与我保持联系吧!" ></div>
		<div id="Mme" title="Guys!,Contact with me!" ></div>
	</div>
</div>
<!-- End ContactMe -->

<!-- Start top_commentators -->
<?php if((is_home() )&& function_exists('ns_show_top_commentators')) { ?> 
<div class="TopComtors">
<h3 title="一周来的热心评论者">Top Commentators</h3>
<ul><?php echo cacheAsFile(ns_show_top_commentators,'TopCommentators.html',array(false)); ?></ul>
</div>
<?php } ?>


<!-- Start Recent Comments -->
<?php if ((is_home() ) && function_exists('get_recent_comments')) { ?>
<div class="LatestCom">
<h3 title="最新的评论">Recent Comments</h3>
 <ul>
  <?php if(function_exists("get_recent_comments"))get_recent_comments(15); ?>
 </ul>
</div>
<?php } ?>
<!-- End Recent Comments -->

<!-- Start top_Comments -->
<?php if( function_exists('get_mostcommented') && (is_single() || is_page() || is_archive() || is_search() || is_404())) { ?> 
<div class="TopComtors">
<h3 title="评论最多的文章" >Top Comments</h3>
<ul><?php 
		echo cacheAsFile(get_mostcommented,'most_commented.html',array(10,false)); ?></ul>
</div>
<?php } ?>
<!-- End top_Comments -->

<!-- Start most_viewed -->
<?php if(function_exists('get_most_viewed') && (is_single() || is_page() || is_archive() || is_search() || is_404())) { ?> 
<div class="widget">
<h3 title="点击最高的文章" >Top View</h3>
<ul><?php 
		echo cacheAsFile(get_most_viewed,'most_viewed.html',array('both', 12,0,false)); ?></ul>
</div>
<?php } ?>
<!-- End most_viewed -->


<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('sidebarL') ) : else : ?>     
<?php endif; ?>

</div>
</div>
<div id="sidebarR">
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('sidebarR') ) : else : ?>     
<?php endif; ?>  

<h3>Meta</h3>
<ul>
<?php if (is_user_logged_in()){ 
	
echo '<li><a href="'.get_option('home').'/wp-admin/post-new.php">撰写文章</a></li>';
echo '<li><a href="'.get_option('home').'/wp-admin/moderation.php">评论审核</a></li>';
echo '<li><a href="'.get_option('home').'/wp-admin/plugins.php">插件管理</a></li>';
echo '<li><a href="'.get_option('home').'/wp-admin/options-general.php">常规设置</a></li>';

}?>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
<li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
<li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
<?php wp_meta(); ?>
</ul>

</div>

</div>